<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>服务处理</title>
    <link th:href="@{/localcss/crmlist.css}" href="../static/localcss/crmlist.css" rel="stylesheet">
    <style type="text/css">
        table tr td{
            line-height: 40px;
            border: 1px solid lightgray;
        }
        table tr td,th{
            text-align: center;
        }
        th{
            background-color: blue;
            color: white;
        }
    </style>
</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>
                            客户服务管理 > 服务处理 <i class="fa fa-user"></i>
                        </h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <form class="form-horizontal form-label-left" th:action="@{/service/deal}" action="/service/deal" method="post">
                            <input type="hidden" name="svrId" th:value="${cstService.svrId}" />
                        <table width="100%">
                            <tr>
                                <td class="bg" style="text-align: center;width: 150px;">编号</td>
                                <td style="text-align: left;width: 400px;" th:text="${cstService.svrId}"></td>
                                <td class="bg">服务类型</td>
                                <td style="text-align: left" th:text="${cstService.svrType}">类型</td>
                            </tr>
                            <tr>
                                <td class="bg">概要</td>
                                <td colspan="3" style="text-align: left" th:text="${cstService.svrTitle}">概要</td>
                            </tr>
                            <tr>
                                <td class="bg">客户</td>
                                <td style="text-align: left" th:text="${cstService.svrCustName}">张三</td>
                                <td class="bg">状态</td>
                                <td style="text-align: left" th:text="${cstService.svrStatus}">已分配</td>
                            </tr>
                            <tr>
                                <td class="bg">服务请求</td>
                                <td colspan="3" style="text-align: left" th:text="${cstService.svrRequest}">请求</td>
                            </tr>
                            <tr>
                                <td class="bg">创建人</td>
                                <td style="text-align: left" th:text="${cstService.svrCreateBy}">张三</td>
                                <td class="bg">创建时间</td>
                                <td style="text-align: left" th:text="${#temporals.format(cstService.svrCreateDate, 'yyyy-MM-dd HH:mm:ss')}">2023-12-12 11:11:00</td>
                            </tr>
                        </table>
                            <hr>
                            <table  width="100%">
                                <tr>
                                    <td class="bg" style="text-align: center;width: 150px;">分配给</td>
                                    <td style="text-align: left;width: 400px;" th:text="${cstService.svrDueTo}">李四</td>
                                    <td class="bg">分配时间</td>
                                    <td style="text-align: left" th:text="${#temporals.format(cstService.svrDueDate, 'yyyy-MM-dd HH:mm:ss')}">2023-12-12 12:11:00</td>
                                </tr>
                            </table>
                            <hr>
                            <table  width="100%">
                                <tr>
                                    <td  style="text-align: center;width: 150px;">服务处理</td>
                                    <td colspan="3">
                                        <textarea name="svrDeal" rows="5" class="form-control"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bg">处理人</td>
                                    <td style="text-align: left"><input class="form-control" readonly th:value="${session.loginUser.usrName}" /></td>
                                    <td class="bg">处理时间</td>
                                    <td style="text-align: left"><input class="form-control" readonly th:value="${#dates.format(#dates.createNow(), 'yyyy-MM-dd HH:mm:ss')}" /></td>
                                </tr>
                            </table>
                            <div class="form-group" style="text-align: center;margin-top: 20px">
                                <button type="button" class="btn btn-primary" id="back">返回</button>
                                <button  type="submit" class="btn btn-dark">保存</button>
                                <br/><br/>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
<script layout:fragment="js">
    $(document).ready(function(){
        $("#back").on("click",function(){
            window.history.back();
        });
    });
</script>
</html>